<div class="row">
    <div class="col-md-3">
         <?php echo $pagelet_sidebar; ?>
    </div>
    <div class="col-md-9">
        
        <?php foreach ($test1_data as $key => $items): ?>
            <div>
                <div class="page-header">
                    <h1 id="<?php echo $key; ?>"><?php echo ucfirst(str_replace('-', ' ', $key)); ?></h1>
                </div>
                <?php if ( ! empty($items)): ?>
                    <div>
                    <?php foreach ($items as $sub_key => $label): ?>
                        <h2 id="<?php echo $sub_key; ?>"><?php echo $label; ?></h2>
                        <?php echo $this->load->view('content/pagelet_' . str_replace('-', '_', $sub_key), TRUE); ?>
                    <?php endforeach; ?>
                    </div>
                <?php endif; ?>
            </div>
        <?php endforeach; ?>
    </div>
</div>